package com.xcesys.extras.remoting.system;

import java.util.List;

import com.xcesys.extras.dataobject.system.Resource;
import com.xcesys.extras.dataobject.system.Role;
import com.xcesys.extras.dataobject.system.User;
import com.xcesys.extras.remoting.RemotingCrudService;

public interface RUserService extends RemotingCrudService<User> {

	void addRolesToUser(Long userId, List<Long> roles);

	List<Resource> findResourceInUser(Long userId);

	List<Role> findRolesInUser(Long userId);

	void removeRolesFromUser(Long userId, List<Long> roleIds);

	void lock(List<Long> ids);

	void unlock(List<Long> ids);

	void resetPassword(List<Long> ids);
}
